package com.tencent.wxcloudrun.controller;

import com.tencent.wxcloudrun.controller.utils.ResultResponse;
import com.tencent.wxcloudrun.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/address")
public class AddressController {

    @Autowired
    private AddressService addressService;

    @GetMapping
    public ResultResponse list() {
        return ResultResponse.ok(addressService.list(),false);
    }
}
